pub fn dp_rec_mc(amount: u32) -> u32 {
    let currencies = [100, 50, 30, 20, 10, 5, 2, 1];
    let mut remaining_amount = amount;
    let mut count = 0;
    for currency in currencies.iter() {
        count += remaining_amount / *currency;
        remaining_amount %= *currency;
    }
    count
}
